﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ToDoIt2.Aspects;
using System.Collections.ObjectModel;
using pklib.Manip;
using FluentNHibernate.Data;
using uNhAddIns.WPF.Collections.Types;
using NHibernate.Collection;
using Iesi.Collections.Generic;
using System.ComponentModel;

namespace ToDoIt2.Model.Persistent {
	[NotifyPropertyChanged]
	public class Item {
		public virtual int ItemID { get; set; }
		public virtual string Title { get; set; }
		public virtual ICollection<Item> Children { get; set; }
		public virtual Item Parent { get; set; }

		public Item() { this.Children = new HashedSet<Item>(); }
		public Item(String Title) : this() {
			this.Title = Title;
		}

		public new virtual string ToString() { return "Item: " + this.Title; }
	}
}
